﻿#include "CmdPolarCoordinateGraphSidebarDataOperationChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdPolarCoordinateGraphSidebarDataOperationChanged::CmdPolarCoordinateGraphSidebarDataOperationChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdPolarCoordinateGraphSidebarDataOperationChanged::~CmdPolarCoordinateGraphSidebarDataOperationChanged()
    {
    }

    bool CmdPolarCoordinateGraphSidebarDataOperationChanged::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_polarCoordinateGraphSidebarDataOperationChanged(m_mainWindowId, m_isNormChecked, m_isDBChecked);
        return true;
    }

    void CmdPolarCoordinateGraphSidebarDataOperationChanged::undo()
    {
    }

    void CmdPolarCoordinateGraphSidebarDataOperationChanged::redo()
    {
        // execute();
    }

    void CmdPolarCoordinateGraphSidebarDataOperationChanged::setPolarCoordinateGraphSidebarDataOperationChanged(int mainWindowId, bool isNormChecked, bool isDBChecked)
    {
        m_mainWindowId = mainWindowId;
        m_isNormChecked = isNormChecked;
        m_isDBChecked = isDBChecked;
    }

} // namespace PostCommand
